from django.urls import include, path, re_path
from . import views

# 路由配置
urlpatterns = [
    path("test", views.TestApiView.as_view()),
    re_path(r"^game(/)?$", views.YfsGameView.as_view()),
    re_path(r"^game/detail(/)?$", views.YfsGameDetailView.as_view()),
    re_path(r"^game/state(/)?$", views.YfsGameStateView.as_view()),
    re_path(r"^songame(/)?$", views.YfsSonGameView.as_view()),
    re_path(r"^good(/)?$", views.YfsGoodView.as_view()),
    re_path(r"^good/detail(/)?$", views.YfsGoodDetailView.as_view()),
    re_path(r"^finance(/)?$", views.YfsFinanceView.as_view()),
    re_path(r"^raffle(/)?$", views.YfsRaffleRecordView.as_view()),
    re_path(r"xcx/game(/)?$", views.XcxYfsGameView.as_view()),
    re_path(r"^xcx/game/detail", views.XcxYfsSonGameView.as_view()),
    re_path(r"^xcx/songame/detail?$", views.XcxYfsSonGameDetail.as_view()),
    re_path(r"^xcx/songame(/)?$", views.XcxYfsSonGameListView.as_view()),
]
